package edu.sctu.practice.class01.nieyu.test.test01;

/**
 * Created by Administrator on 2015/10/15.
 */
public class Client {
    public static void main(String[] args) {

        Vehicle vehicle = new Vehicle();
        vehicle.size = 1000;
        System.out.println("体积为：" + vehicle.size);

        vehicle.move();

        vehicle.setSpeed(125);
        System.out.println("速度：" + vehicle.speed);

        System.out.println("我开始加速了，我现在的速度为：" + vehicle.speedUp());
        System.out.println("有交警，减速为：" + vehicle.speedDown());
    }
}
